int a, b;
int d;
void main() {
int c, b;
while (a<b) {
if(2*a>=b)
intercambia();
else
break;
a=a+1;
}
}
void intercambia() {
int c;
c=a;a=b;b=c;
}